package cn.com.surker.production.service.impl;

import cn.com.surker.production.entity.ProductionInvoice;
import cn.com.surker.production.entity.vo.ProductionInvoiceVo;
import cn.com.surker.production.service.ErpInvoiceService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * erp中的任务单实现类
 *
 * @author luotao
 * @date 2024/9/13
 */
@Service
public class ErpInvoiceImpl extends ProductionInvoiceBaseImpl implements ErpInvoiceService {

	@Override
	public List<ProductionInvoice> findNoBatchInv(String startTime, String endTime) {
		List<ProductionInvoice> invoiceList = invoiceDao.findNoBatchInv(startTime, endTime);
		return invoiceList;
	}

	@Override
	public List<ProductionInvoice> defaultPumpList(Long indentId) {
		List<ProductionInvoice> invoiceList = invoiceDao.defaultPumpList(indentId);
		return invoiceList;
	}

	@Override
	public ProductionInvoiceVo findPumpCodeDetail(String dbCode, Long id) {
		ProductionInvoiceVo productionInvoiceVo = null;
		try {
			productionInvoiceVo = invoiceDao.findPumpCodeDetail(dbCode, id);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return productionInvoiceVo;
	}
}
